package com.tte.common.mapper;

import com.tte.common.anno.DictConver.DictConvertForMethod;
import com.tte.common.anno.DictConver.UserVo;
import com.tte.common.model.po.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {

    int deleteByPrimaryKey(String id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String id);

    User selectByloginAndPass(User record);

    @DictConvertForMethod
    List<UserVo> getAll();

    UserVo selectUserVoById(String id);


    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}